#include "stm32f10x.h"
#define  _FLASH_PROG

#include "stm32f10x_flash.h"
#include "flash_pro.h"
								 
void    flash_protect(void)
{
        if(FLASH_GetReadOutProtectionStatus() != SET)
		{
		    FLASH_Unlock();	    
		    FLASH_ReadOutProtection(ENABLE);     
		}
}

void    flash_unprotect(void)
{
        if(FLASH_GetReadOutProtectionStatus() != RESET)
		{
		    FLASH_Unlock();
		    FLASH_ReadOutProtection(DISABLE); 
		}
}
